<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title> 我的乐铺积分 - LooPo-乐铺 </title>
<?php include VIEWS.'header.html'?>

<style type="text/css">
.tt {
    width: 96%;
    padding: 0;
}

.tt td {
    border-bottom: 1px dotted #CCCCCC;
    font-size: 12px;
}

.ti {
    line-height: 150%;
}
</style>

</head>

<body>

<?php include VIEWS.'topbar.html'?>

<div id="content">

    <?php include VIEWS.'leftnav.html'?>

<div id="right">
<h1>我的乐铺积分 (1积分=1人民币)</h1>

<h3 style="margin-bottom:5px"><img src="/images/icon_arrow_down.gif" />通过您的推荐购买的订单</h3>
<hr size="1" />

<?php if(!count($list['list'])):?>
    <div class="errbox roundNormal" style="width:90%">&nbsp;&nbsp;&nbsp;暂时还没有通过您的推荐购买的订单，要加油哦！</div>
<?php else:?>
    <table class="tt" cellspacing="0">
    <tr class="ti" style="font-weight:bold;background-color:#BBCDF0"><td>&nbsp;订单号</td><td>订单金额</td><td>销售点数</td><td>更新时间</td><td nowrap="nowrap">订单状态</td></tr>
    <?php foreach ($list['list'] as $v):?>
    <tr class="ti">
    <td><b>&nbsp; <?php echo $v['id']?></b></td>
    <td> &yen; <?php echo $v['sumfee']+$v['postfee']+$v['adjustfee']?> </td>
    <td style="color:green"> &yen; <?php echo $v['backpoint']?> </td>
    <td> <?php echo date('m/d/y H:i', $v['updated'])?> </td>
    <td><?php
    switch($v['stat']) {
        case -1:        echo '<font color="#CCCCCC"><b>存档订单</b></font>'; break;
        case 1:         echo '<font color="red"><b>待确认</b></font>'; break;
        case 2:         echo '<font color="green"><b>待发货</b></font>'; break;
        case 3:         echo '<font color="green"><b>已发出</b></font>'; break;
        case 4:         echo '<font color="blue"><b>已完成</b></font>'; break;
        case 0:default: echo '<b>待付款</b>';
    }
    ?></td>
    </tr>
    <?php endforeach?>
    </table>
    <div style="text-align:right;margin:0.8em">
    <?php if(!$data['all'] && $list['page']['next']):?><a class="px12" tabindex="3" href="/my/Union.php/all">查看所有销售记录</a><?php endif?>
    <?php if($data['all'] && $list['page']['next']):?><div style="text-align:right;margin:0.8em"><a class="px12" tabindex="3" href=<?php echo $list['page']['url']?>p=<?php echo $list['page']['next']?>>更早的记录...</a></div><?php endif?>
    </div>
<?php endif?>


<?php if (!$data['all']):?>
<br /><br />

<h3 style="margin:0"><img id="rightarrow" src="/images/icon_arrow_down.gif" />如何获得积分</h3>
<hr size="1" />
<ol class="px12 l20">
<li>加入我们的博客销售计划，推荐订单。(每订单积分+N)；<a href="/blog/?p=56">了解详情</a></li>
<li>推荐用户到乐铺注册。(每个有效用户积分+10)；</li>
<li>积极参加乐铺的活动，会有定期积分返还。</li>
</ol>
<br clear="all">

<?php endif?>

    </div>
</div>

<?php include VIEWS.'copyright.html'?>

</body>
</html>
